<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return view('welcome');
});

Route::any("/phptest",function (){
    return View("test");
});


//用户操作
Route::any("Users/GetAll","UsersController@getAllUsers");

Route::post("Login","UsersController@LoginFromUserName");

Route::post("Login1","UsersController@LoginFromUserName1");

Route::post("CheckUser","UsersController@CheckUser");

Route::get("Logout","UsersController@Logout");

Route::put("Regesist","UsersController@Regesist");


//安全
route::post("ModifyPassword","UsersController@ModifyPassword");


//菜单
Route::get("GetCustomMenus","MenusController@GetCustomMenus");

Route::get("AllMenus","MenusController@GetAllMenus");

Route::put("CreateMenu","MenusController@CreateMenu");

Route::post("UpdateMenu","MenusController@UpdateMenu");

Route::post("SortMenu","MenusController@SortMenu");

Route::delete("DeleteMenu","MenusController@DeleteMenu");


//文件
Route::post("JSSBUploadFile","FileController@JSSBUploadFile");

route::get("GetJSSBFileList","FileController@GetJSSBFileList");

route::get("DownloadJSSBFile","FileController@DownloadJSSBFile");


//图片上传
route::post("ImageUpload","FileController@ImageUpload");


//文章
route::post("CreateArticle","ArticleController@CreateArticle");
route::get("GetArticlesList","ArticleController@GetArticlesList");




//测试


Route::any("test","Test\\testController@getResult");

Route::any("test1","Test\\testController@test1");
Route::any("test2","Test\\testController@test2");

Route::any("test/Create","Test\\testController@create");

Route::any("test/Dir","Test\\testController@getDir");

Route::any("test/getAllBus","Test\\testController@getAllBus");

Route::any("test/getAllModel","Test\\testController@getAllBus");


//刷新数据库
Route::any("DataBaseAllInitialize","DataBaseController@DataBaseAllInitialize");

Route::any("DataBaseLog","DataBaseController@DataBaseLogInitialize");

Route::any("DataBaseBase","DataBaseController@DataBaseBaseInitialize");

Route::any("DataBaseBis","DataBaseController@DataBaseBisInitialize");

Route::any("DataBaseCreateViews","DataBaseController@DataBaseCreateViews");

